<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_role".
 *
 * @property string $id
 * @property string $name
 * @property integer $create_time
 * @property integer $last_modify
 * @property integer $disabled
 */
class Role extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_role';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['create_time', 'last_modify', 'disabled'], 'integer'],
            [['name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'create_time' => 'Create Time',
            'last_modify' => 'Last Modify',
            'disabled' => 'Disabled',
        ];
    }
}
